responseCode

open fun responseCode(): Int

Returns the HTTP response code. This is 0 if the response code text seems to exist, but could not be parsed. Otherwise, it defaults to 200 if the response code is not found in the HTTP headers.